import { createRouter, createWebHistory } from 'vue-router'
import Register from '@/components/Register'
import Login from '@/components/Login'
import ChangePwd from '@/components/ChangePwd'
import Info from '@/components/Info';
import Welcome from "../components/Welcome";

import ManagerLogin from "../components/ManagerLogin";
import user from "../components/User/user";
import InfoManager from "../components/User/InfoManager";
import LeaveWord from "../components/User/Assess/LeaveWord";
import Evaluate from "../components/User/Assess/Evaluate";
import AccuseNurse from "../components/User/Assess/AccuseNurse";
import ChangeNurse from "../components/User/Assess/ChangeNurse";


import KindSelect from "../components/User/Food/KindSelect";

import nurse from "../components/Nurse/nurse";
import Clock from "../components/Nurse/Clock";
import Leave from "../components/Nurse/Leave";
import Myassess from "../components/Nurse/Myassess";



const routes = [
  {
    path:'/',
    name:'欢迎',
    component: Welcome
  },

  {
    path:'/components/Nurse/nurse',
    name:'护工界面',
    component: nurse
  },

  {
    path:'/components/Nurse/Myassess',
    name:'评价我的',
    component: Myassess
  },
  {
    path:'/components/Nurse/Leave',
    name:'请假',
    component: Leave
  },
  {
    path:'/components/Nurse/Clock',
    name:'打卡',
    component: Clock,
  },
  {
    path:'/components/User/Food/KindSelect',
    name:'膳食种类选择',
    component: KindSelect
  },
  {
    path:'/components/User/InfoManager',
    name:'个人信息',
    component: InfoManager
  },
  {
    path:'/components/User/Assess/AccuseNurse',
    name:'护工举报',
    component: AccuseNurse
  },
  {
    path:'/components/User/Assess/Evaluate',
    name:'打分评价',
    component: Evaluate
  },
  {
    path:'/components/User/Assess/ChangeNurse',
    name:'护工更换',
    component: ChangeNurse
  },
  {
    path:'/components/User/Assess/LeaveWord',
    name:'留言',
    component: LeaveWord
  },
  {
    path:'/components/User/user',
    name:'用户',
    component: user
  },
  {
    path: '/Register',
    name: '注册',
    component: Register
  },
  {
    path: '/Login',
    name: '登录',
    component: Login
  },

  {
    path: '/ChangePwd',
    name: '修改密码',
    component: ChangePwd
  },
  {
    path: '/Info',
    name:'个人信息',
    component: Info
  },
  {
    path: '/ManagerLogin',
    name: '管理员登录',
    component: ManagerLogin
  },
  {
    path: '/about',
    name: 'About',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router